#!/bin/sh

minproc=$1
maxproc=$2
launchs_per_nproc=$3
ppn=$4
ppn=${ppn:='-1'}

i=$minproc
while [ $i -le $maxproc ]
do
  for  (( j = 1 ; j <= $launchs_per_nproc ; j++ ))
  do
    ./launch $i $i 180 $ppn
  done
  i=`expr $i + 1` 
done
